package com.bdk.middle.orchestration.service;

import com.bdk.middle.common.result.ResultDO;
import com.bdk.middle.orchestration.api.domain.CategoryDO;
import com.bdk.middle.orchestration.api.query.CategoryQueryDO;
import com.bdk.middle.orchestration.core.entity.CategoryEntity;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Reagan
 * @since 2021-03-12
 */
public interface CategoryService extends IService<CategoryEntity> {

    /**
     * 添加类目
     * @param domain 用户DO
     * @return ResultDO
     */
    public ResultDO add(CategoryDO domain);

    /**
     * 修改类目信息
     * @param domain 用户DO
     * @return ResultDO
     */
    public ResultDO edit(CategoryDO domain);

    /**
     * 获取类目详情
     * @param id 用户ID
     * @return ResultDO
     */
    public ResultDO get(String id);

    /**
     * 删除类目
     * @param id 用户ID
     * @return ResultDO
     */
    public ResultDO remove(String id);

    /**
     * 查找类目列表分页
     * @param domain 查询DO
     * @return ResultDO
     */
    public ResultDO find(CategoryQueryDO domain);



}
